<div class='m_block'>
	<a class='image' href='index.php?page=gioi-thieu'><img class='i-update' label='Duyệt trên máy chủ' link='page=_config-update&name=gioi-thieu-5' src='<?php echo Common::get_thumb_path(Config::fetch_config_content_by_name('gioi-thieu-5'));?>'/></a>
	<div class='header'><span class='i-update' link='page=_config-update&name=gioi-thieu-1'><?php echo Config::fetch_config_content_by_name('gioi-thieu-1');?></span> <span class='inside-header i-update' link='page=_config-update&name=gioi-thieu-2'><?php echo Config::fetch_config_content_by_name('gioi-thieu-2');?></span></div>						
	<a href='index.php?page=gioi-thieu' class='title i-update' link='page=_config-update&name=gioi-thieu-3'><?php echo Config::fetch_config_content_by_name('gioi-thieu-3');?></a><br/>
	<span class='content i-update' link='page=_config-update&name=gioi-thieu-4'>
		<?php echo Config::fetch_config_content_by_name('gioi-thieu-4');?>
	</span><br/>
	<a href='index.php?page=gioi-thieu' class='read_more title'>Xem chi tiết</a>
	<div class='clear'></div>	
</div>
<div class='h_line'></div>
<div class='s_block' id='left'>
	<div class='sub_header'>Tin tức</div>						
	<div class='content'>
		<?php
		$table=Db::mysql_query(" SELECT * FROM tbl_page WHERE page_group_id=3 AND page_status=1 AND page_focus=0 ORDER BY page_id DESC LIMIT 3",FETCH_MODE_TABLE);
		foreach ($table as $key=>$row)
		{
			$link="index.php?page=tin-tuc&alias=".$row['page_alias']."&id=".$row['page_id'];
		?>
			<div class='x_block'>
				<a href='<?php echo $link?>' class='image'><img class='i-update' link='page=_page-delete&id=<?php echo $row['page_id'];?>' confirm='1' popup='0' label='Xóa tin' src='<?php echo Common::get_thumb_path($row['page_image']);?>'/></a>
				<a href='<?php echo $link?>' class='title'><?php echo $row['page_title']?></a>
				<div class='content' >
					<span class='i-update' link='page=_page-update&id=<?php echo $row['page_id'];?>'><?php echo $row['page_quote']?></span>
					<a href='<?php echo $link?>' class='read_more title'>Xem chi tiết</a>
				</div>	
			</div>
			<div class='clear'></div> 	
		<?php 
		}
		?>
		<div class='border_top'>
			<a href='index.php?page=tin-tuc' class='read_more title'>Xem tất cả</a>
		</div>
		<div class="clear"></div>
	</div>
</div>
<div class='s_block' id='right'>
	<div class='sub_header'>Dịch vụ</div>		
	<div class='content'>
		<span class='title i-update' link="page=_config-update&name=dich-vu-1"><?php echo Config::fetch_config_content_by_name('dich-vu-1')?></span>							
		<span class='i-update' link="page=_config-update&name=dich-vu-2"><?php echo Config::fetch_config_content_by_name('dich-vu-2')?></span>
		<div class='y_block'>
			<div class='title i-update' link="page=_config-update&name=dich-vu-3"><?php echo Config::fetch_config_content_by_name('dich-vu-3')?></div>							
			<div class='content'>
				<ul id='left'>
				<?php
				$table=Db::mysql_query("SELECT * FROM tbl_page WHERE page_group_id=4 AND page_status=1 ORDER BY page_id DESC",FETCH_MODE_TABLE); 
				foreach ($table as $key=>$row) 
				{
					if($key==ceil(count($table)/2))
					{
					?>
				</ul>
				<ul id='right'>
					<?php
					} 
					?>
					<li><a href="index.php?page=dich-vu&alias=<?php echo $row['page_alias'];?>&id=<?php echo $row['page_id'];?>"><?php echo $row['page_title'];?></a></li>
					<?php 
				}
				?>
				</ul>
				<div class="clear"></div>
				<div class='border_top'>
					<a href='index.php?page=dich-vu' class='read_more title'>Xem tất cả</a>							
				</div>
			</div>											
		</div>
	</div>
</div>